﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using BDD.TicTacToe.Acceptance.Tests.PageObjects;
using TechTalk.SpecFlow;

namespace BDD.TicTacToe.Acceptance.Tests.Steps
{
    [Binding]
    public class ActionSteps
    {
        [When(@"I click start new game")]
        public void WhenIClickStartNewGame()
        {
            WelcomePage.ClickStartNewGame();
        }

        [When(@"I enter the name ""(.*)"" for player ""(.*)""")]
        public void WhenIEnter(string playerName, string playerToken)
        {
            if (playerToken.ToUpper() == "X")
            {
                WelcomePage.PlayerXName = playerName;
            }
            else
            {
                WelcomePage.PlayerOName = playerName;
            }

        }
    }
}
